package com.winshare.saleAssistant.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.winshare.saleAssistant.domain.dto.req.DataAnalysisQueryDTO;
import com.winshare.saleAssistant.model.UserOperationLog;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 用户操作日志 Mapper 接口
 * </p>
 *
 * @author stylefeng
 * @since 2020-11-15
 */
public interface UserOperationLogMapper extends BaseMapper<UserOperationLog> {

    List<UserOperationLog> selectByCondition(@Param("productName") String productName);

    int getPerTime(@Param("areaName") String areaName, @Param("productName") String productName, @Param("starTime") Date starTime, @Param("endTime") Date endTime);

    List<UserOperationLog> getFunCount(@Param("provinceName") String provinceName, @Param("cityName") String cityName, @Param("areaName") String areaName, @Param("productName") String productName,
                                       @Param("starTime") Date starTime, @Param("endTime") Date endTime, @Param("orderBy") String orderBy);

    List<UserOperationLog> getFunTime(@Param("provinceName") String provinceName, @Param("cityName") String cityName, @Param("areaName") String areaName, @Param("productName") String productName,
                                      @Param("starTime") Date starTime, @Param("endTime") Date endTime, @Param("orderType") String orderType);

    List<UserOperationLog> getFunTimeCount(DataAnalysisQueryDTO dataAnalysisQueryDTO);

    String getSynchronousTime();
}